import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './styles/index.scss'

/* 路由权限 */
import './router/permission'

// svg
import 'virtual:svg-icons-register'

const app = createApp(App)

// global components
import comModules from '@/components/index'
Object.keys(comModules).forEach((comName) => {
  app.component(comName, comModules[comName])
})

app.use(store).use(router).mount('#app')
